home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / src / lib / H / tmp / limit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  778 b   |  44 lines

  1. /*
  2.  * limit.h --
  3.  *    POSTGRES limit definitions.
  4.  *
  5.  * Identification:
  6.  *    $Header: /private/postgres/src/lib/H/tmp/RCS/limit.h,v 1.5 1990/08/17 08:54:42 cimarron Exp $
  7.  */
  8.  
  9. #ifndef    LimitIncluded    /* Include this file only once. */
  10. #define LimitIncluded    1
  11.  
  12. #include "tmp/c.h"
  13.  
  14. #define MaxBitsPerByte    8
  15.  
  16. typedef uint32    AttributeSize;    /* XXX should be defined elsewhere */
  17.  
  18. #define MaxHeapTupleSize    0x7fffffff
  19. #define MaxAttributeSize    0x7fffffff
  20.  
  21. #define MaxIndexAttributeNumber    7
  22.  
  23. /*
  24.  * AttributeSizeIsValid --
  25.  *    True iff the attribute size is valid.
  26.  */
  27. extern
  28. bool
  29. AttributeSizeIsValid ARGS((
  30.     AttributeSize    size
  31. ));
  32.  
  33. /*
  34.  * TupleSizeIsValid --
  35.  *    True iff the tuple size is valid.
  36.  */
  37. extern
  38. bool
  39. TupleSizeIsValid ARGS((
  40.     TupleSize    size
  41. ));
  42.  
  43. #endif    /* !defined(LimitIncluded) */
  44.